package com.k.liuzh.extraffic.Database;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.util.Date;

@DatabaseTable(tableName = "chongzhi")
public class ChongZhiBean {
    @DatabaseField(columnName = "id" , generatedId = true , useGetSet = true)
    private int id;
    @DatabaseField(columnName = "carId" , useGetSet = true)
    private int carId;
    @DatabaseField(columnName = "jinE" , useGetSet = true)
    private int jinE;
    @DatabaseField(columnName = "userName" , useGetSet = true)
    private String userName;
    @DatabaseField(columnName = "time" , useGetSet = true)
    private Date time;

    public ChongZhiBean(int carId, int jinE, String userName, Date time) {
        this.carId = carId;
        this.jinE = jinE;
        this.userName = userName;
        this.time = time;
    }

    public ChongZhiBean(){

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCarId() {
        return carId;
    }

    public void setCarId(int carId) {
        this.carId = carId;
    }

    public int getJinE() {
        return jinE;
    }

    public void setJinE(int jinE) {
        this.jinE = jinE;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "ChongZhiBean{" +
                " ,id = " + id +
                " ,carId = "+carId+
                " ,jinE = "+"\'"+jinE+"\'"+
                " ,userName = "+"\'"+userName+"\'"+
                " ,time = "+time+
                "}";
    }
}
